package com.groupbuying.customer.service;

import com.groupbuying.customer.domain.CustomerAliinfoRelDO;
import com.groupbuying.customer.utils.apiresult.ApiResult;

import java.util.List;
import java.util.Map;

/**
 * 支付宝登录信息关联表
 * 
 * @author gaoruijun
 * @email 18511893135@163.com
 * @date 2019-07-23 11:45:51
 * @des
 */

public interface CustomerAliinfoRelService {
	
	CustomerAliinfoRelDO get(String customerId);
	
	List<CustomerAliinfoRelDO> list(Map<String, Object> map);
	
	int count(Map<String, Object> map);
	
	int save(CustomerAliinfoRelDO customerAliinfoRel);

	int update(CustomerAliinfoRelDO customerAliinfoRel);

	int updateByAliUserId(CustomerAliinfoRelDO customerAliinfoRel);

	int remove(String customerId);
	
	int batchRemove(String[] customerIds);

	/**
	 * 支付宝注册
	 * @param authCode
	 * @return
	 */
	ApiResult customerAliRegister(String authCode);

	/**
	 * 根据customerId获取aliuserId
	 * @param customerId
	 * @return
	 */
	String getAliUserIdByCustomerId(String customerId);


	/**
	 * //支付宝用户手机号授权注册登录接口
	 *
	 * @Author Vincentxin
	 * @Date 2019/9/27 11:57
	 * @return com.groupbuying.customer.utils.apiresult.ApiResult
	 **/
	ApiResult regiestForAli(Map<String,String> param);
}
